﻿namespace question8
{
    public interface InterfaceA
    {
        void printCapitalLetter();
    }

    public interface InterfaceB
    {
        void printLowercaseLetter();
    }
    public class Print : InterfaceA, InterfaceB
    {
        public void printCapitalLetter()
        {
            Console.WriteLine("大写英文字母表:");
            for (char c = 'A'; c <= 'Z'; c++)
            {
                Console.Write(c + " ");
            }
            Console.WriteLine();
        }
        public void printLowercaseLetter()
        {
            Console.WriteLine("\n小写英文字母表:");
            for (char c = 'a'; c <= 'z'; c++)
            {
                Console.Write(c + " ");
            }
            Console.WriteLine();
        }
    }

    public class Program
    {
        public static void Main()
        {
            InterfaceA a = new Print();
            a.printCapitalLetter();
            InterfaceB b = new Print();
            b.printLowercaseLetter();
        }
    }
}
